<header class="head-section">
    <div class="navbar navbar-default navbar-static-top container">
        <div class="navbar-header">
            <button class="navbar-toggle" data-target=".navbar-collapse" data-toggle="collapse" type="button">
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <empty name="theme_vars.logo">
                <?php
                    $siteName = explode('|',$theme_vars['site_name']);
               ?>
                <a class="navbar-brand" href="__ROOT__/">{$siteName.0}<span>{$siteName.1}</span></a>
                <else/>
                <a href="__ROOT__">
                    <img src="{$theme_vars.logo|cmf_get_image_url}" style="max-height: 65px">
                </a>
            </empty>
        </div>
        <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right" id="main-menu-user">

                <li class="dropdown user offline" style="display: list-item;">
                    <a class="dropdown-toggle user" data-toggle="dropdown" href="#">
                        <img src="__TMPL__/public/assets/images/headicon.png" class="headicon">
                        登录<b class="caret"></b>
                    </a>
                    <ul class="dropdown-menu pull-right">
                        <li><a href="{:cmf_url('user/Login/index')}"><i class="fa fa-sign-in"></i> &nbsp;登录</a></li>

                        <li><a href="{:cmf_url('user/Register/index')}"><i class="fa fa-user"></i> &nbsp;注册</a></li>
                    </ul>
                </li>
            </ul>
                <ul class="nav navbar-nav">
                <!--后台导航 id 为1-->
                <navigation  root="" >
                    <navigationMenu root="li" class="menu-item menu-item-level-{$level}">
                        <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">{$menu.name|default=''}</a>
                    </navigationMenu>
                    <navigationFolder root="li" class="dropdown  dropdown-custom-level-{$level}" dropdown="ul"
                                      dropdown-class="dropdown-menu dropdown-menu-level-{$level}">
                        <a href="#" class="dropdown-toggle dropdown-toggle-{$level}" data-hover="dropdown" data-toggle="dropdown">
                            {$menu.name|default=''}<i class="fa fa-angle-down"></i>
                        </a>
                    </navigationFolder>
                </navigation>
                <li>
                    <form  method="post" action="{:cmf_url('portal/Search/index')}">
                        <input id="search" class="form-control search" placeholder=" 搜索" type="text" name="keyword" value="{:input('param.keyword','')}">
                    </form>
                </li>
            </ul>
        </div>
    </div>
</header>